package fr.upmc.aladyn.transactionables.tests.objects;

import fr.upmc.aladyn.transactionables.annotations.Transactionable;

/**
 * <p>A Transactionnable Point3DWithName, extended from a Point3D, with a name field.</p>
 * @author Alexis Deluze
 *
 */
@Transactionable
public class Point3DWithName extends Point3D {

	private String name;

	public Point3DWithName(int x, int y, int z, String name) {
		super(x, y, z);
		this.name = name;
	}

	public String getName(){
		return name;
	}

	public void setName(String name){
		this.name = name;
	}
	
	public String toString(){
		return "Point3DWithName("+getX()+","+getY()+","+getZ()+","+this.name+")";
	}
}
